package com.jf3q.iot.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName iot_device
 */
@TableName(value ="iot_device")
@Data
public class IotDevice implements Serializable {
    /**
     * 设备Id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     *
     */
    private String deviceCode;

    /**
     * 网关ID
     */
    private Integer gatewayId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 设置位置
     */
    private String deviceLocation;

    /**
     * 电表总状态 0-拉闸 1-合闸
     */
    private Integer electricityStatus;

    /**
     * 创建时间
     */
    private Date iotCreate;

    /**
     * 修改时间
     */
    private Date iotModify;

    private BigDecimal deviceBalance;
    private BigDecimal deviceSurplus;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
